

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>cephfs-journal-tool &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/css/custom.css" type="text/css" />

  
  
    <link rel="shortcut icon" href="../../_static/favicon.ico"/>
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
        <script src="../../_static/jquery.js"></script>
        <script src="../../_static/underscore.js"></script>
        <script src="../../_static/doctools.js"></script>
    
    <script type="text/javascript" src="../../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../../genindex/" />
    <link rel="search" title="Search" href="../../search/" />
    <link rel="next" title="Recovering the file system after catastrophic Monitor store loss" href="../recover-fs-after-mon-store-loss/" />
    <link rel="prev" title="灾难恢复" href="../disaster-recovery/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../" class="icon icon-home"></a> &raquo;</li>
        
          <li><a href="../">Ceph 文件系统</a> &raquo;</li>
        
      <li>cephfs-journal-tool</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../../_sources/cephfs/cephfs-journal-tool.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../../">
          

          
            
            <img src="../../_static/logo.png" class="logo" alt="Logo"/>
          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../start/intro/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../">Ceph 文件系统</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../#cephfs">CephFS 入门</a></li>
<li class="toctree-l2"><a class="reference internal" href="../#id4">管理</a></li>
<li class="toctree-l2"><a class="reference internal" href="../#id5">挂载 CephFS</a></li>
<li class="toctree-l2"><a class="reference internal" href="../#id6">CephFS 内幕</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="../#id7">故障排除和灾难恢复</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="../eviction/"> 驱逐客户端</a></li>
<li class="toctree-l3"><a class="reference internal" href="../scrub/"> 洗刷</a></li>
<li class="toctree-l3"><a class="reference internal" href="../full/"> 文件系统占满的处理</a></li>
<li class="toctree-l3"><a class="reference internal" href="../disaster-recovery-experts/"> 元数据修复</a></li>
<li class="toctree-l3"><a class="reference internal" href="../troubleshooting/"> 故障排除</a></li>
<li class="toctree-l3"><a class="reference internal" href="../disaster-recovery/"> 灾难恢复</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#"> cephfs-journal-tool</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#id1">目的</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id2">语法</a></li>
<li class="toctree-l4"><a class="reference internal" href="#journal">Journal 模式</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id4">头模式</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id5">事件模式</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../recover-fs-after-mon-store-loss/"> 监视器存储丢失后恢复文件系统</a></li>
<li class="toctree-l3"><a class="reference internal" href="../#id8">开发者指南</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../#id9">更多细节</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <div class="section" id="cephfs-journal-tool">
<h1>cephfs-journal-tool<a class="headerlink" href="#cephfs-journal-tool" title="Permalink to this headline">¶</a></h1>
<div class="section" id="id1">
<h2>目的<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<p>如果 CephFS 的日志损坏了，就需要专家介入，把文件系统恢复到工作状态。</p>
<p><code class="docutils literal notranslate"><span class="pre">cephfs-journal-tool</span></code> 工具提供的功能可帮助专家们检查、修改、或从日志中提取数据。</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>此工具很<strong>危险</strong>，因为它会直接修改文件系统的内部数据结构。做好备份、多加小心、多寻求专家建议，如果不确定，就别运行此工具。</p>
</div>
</div>
<div class="section" id="id2">
<h2>语法<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">cephfs</span><span class="o">-</span><span class="n">journal</span><span class="o">-</span><span class="n">tool</span> <span class="n">journal</span> <span class="o">&lt;</span><span class="n">inspect</span><span class="o">|</span><span class="n">import</span><span class="o">|</span><span class="n">export</span><span class="o">|</span><span class="n">reset</span><span class="o">&gt;</span>
<span class="n">cephfs</span><span class="o">-</span><span class="n">journal</span><span class="o">-</span><span class="n">tool</span> <span class="n">header</span> <span class="o">&lt;</span><span class="n">get</span><span class="o">|</span><span class="nb">set</span><span class="o">&gt;</span>
<span class="n">cephfs</span><span class="o">-</span><span class="n">journal</span><span class="o">-</span><span class="n">tool</span> <span class="n">event</span> <span class="o">&lt;</span><span class="n">get</span><span class="o">|</span><span class="n">splice</span><span class="o">|</span><span class="n">apply</span><span class="o">&gt;</span> <span class="p">[</span><span class="nb">filter</span><span class="p">]</span> <span class="o">&lt;</span><span class="nb">list</span><span class="o">|</span><span class="n">json</span><span class="o">|</span><span class="n">summary</span><span class="o">|</span><span class="n">binary</span><span class="o">&gt;</span>
</pre></div>
</div>
<p>此工具有三种模式： <code class="docutils literal notranslate"><span class="pre">journal</span></code> 、 <code class="docutils literal notranslate"><span class="pre">header</span></code> 和 <code class="docutils literal notranslate"><span class="pre">event</span></code> ，分别操作日志内的整个日志、头部、和事件。</p>
</div>
<div class="section" id="journal">
<h2>Journal 模式<a class="headerlink" href="#journal" title="Permalink to this headline">¶</a></h2>
<p>这应该是你访问日志状态的起点。</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">inspect</span></code> 报告日志的健康状况，它将鉴定存储日志中丢失或被篡改的对象。要注意的是，此过程不能鉴定事件本身的不一致，它仅鉴定存在且可解码的。</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">import</span></code> 和 <code class="docutils literal notranslate"><span class="pre">export</span></code> 以一个稀疏文件格式读取和写入日志的二进制转储，用文件名作为最后一个参数。导出操作在日志损坏时可能不会可靠地运行，因为丢失了对象。</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">reset</span></code> 删减日志，丢弃其内的任意信息。</p></li>
</ul>
<div class="section" id="journal-inspect">
<h3>实例： journal inspect<a class="headerlink" href="#journal-inspect" title="Permalink to this headline">¶</a></h3>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># cephfs-journal-tool journal inspect</span>
<span class="n">Overall</span> <span class="n">journal</span> <span class="n">integrity</span><span class="p">:</span> <span class="n">DAMAGED</span>
<span class="n">Objects</span> <span class="n">missing</span><span class="p">:</span>
  <span class="mh">0x1</span>
<span class="n">Corrupt</span> <span class="n">regions</span><span class="p">:</span>
  <span class="mh">0x400000</span><span class="o">-</span><span class="n">ffffffffffffffff</span>
</pre></div>
</div>
</div>
<div class="section" id="id3">
<h3>实例：日志的导入和导出<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h3>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span># cephfs-journal-tool journal export myjournal.bin
journal is 4194304~80643
read 80643 bytes at offset 4194304
wrote 80643 bytes at offset 4194304 to myjournal.bin
注：这是个\ **稀疏**\ 文件，你可以在保留其稀疏特性的前提下，
用 ``tar cSzf myjournal.bin.tgz myjournal.bin`` 进行压缩。

# cephfs-journal-tool journal import myjournal.bin
undump myjournal.bin
start 4194304 len 80643
writing header 200.00000000
 writing 4194304~80643
done.
</pre></div>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>明智的做法是，在开始修改前先用 <code class="docutils literal notranslate"><span class="pre">journal</span> <span class="pre">export</span> <span class="pre">&lt;backup</span> <span class="pre">file&gt;</span></code>
命令备份日志。</p>
</div>
</div>
</div>
<div class="section" id="id4">
<h2>头模式<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">get</span></code> 输出日志头部的当前内容。</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">set</span></code> 修改头部的一个属性。可修改属性有 <code class="docutils literal notranslate"><span class="pre">trimmed_pos</span></code> 、
<code class="docutils literal notranslate"><span class="pre">expire_pos</span></code> 和 <code class="docutils literal notranslate"><span class="pre">write_pos</span></code> 。</p></li>
</ul>
<div class="section" id="header-get-set">
<h3>实例： header get/set<a class="headerlink" href="#header-get-set" title="Permalink to this headline">¶</a></h3>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># cephfs-journal-tool header get</span>
<span class="p">{</span> <span class="s2">&quot;magic&quot;</span><span class="p">:</span> <span class="s2">&quot;ceph fs volume v011&quot;</span><span class="p">,</span>
  <span class="s2">&quot;write_pos&quot;</span><span class="p">:</span> <span class="mi">4274947</span><span class="p">,</span>
  <span class="s2">&quot;expire_pos&quot;</span><span class="p">:</span> <span class="mi">4194304</span><span class="p">,</span>
  <span class="s2">&quot;trimmed_pos&quot;</span><span class="p">:</span> <span class="mi">4194303</span><span class="p">,</span>
  <span class="s2">&quot;layout&quot;</span><span class="p">:</span> <span class="p">{</span> <span class="s2">&quot;stripe_unit&quot;</span><span class="p">:</span> <span class="mi">4194304</span><span class="p">,</span>
      <span class="s2">&quot;stripe_count&quot;</span><span class="p">:</span> <span class="mi">4194304</span><span class="p">,</span>
      <span class="s2">&quot;object_size&quot;</span><span class="p">:</span> <span class="mi">4194304</span><span class="p">,</span>
      <span class="s2">&quot;cas_hash&quot;</span><span class="p">:</span> <span class="mi">4194304</span><span class="p">,</span>
      <span class="s2">&quot;object_stripe_unit&quot;</span><span class="p">:</span> <span class="mi">4194304</span><span class="p">,</span>
      <span class="s2">&quot;pg_pool&quot;</span><span class="p">:</span> <span class="mi">4194304</span><span class="p">}}</span>

<span class="c1"># cephfs-journal-tool header set trimmed_pos 4194303</span>
<span class="n">Updating</span> <span class="n">trimmed_pos</span> <span class="mh">0x400000</span> <span class="o">-&gt;</span> <span class="mh">0x3fffff</span>
<span class="n">Successfully</span> <span class="n">updated</span> <span class="n">header</span><span class="o">.</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="id5">
<h2>事件模式<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
<p>事件模式下可对日志内容进行详细的检查和操作。
事件模式可操作日志中的所有或过滤出的事件。</p>
<p><code class="docutils literal notranslate"><span class="pre">cephfs-journal-tool</span> <span class="pre">event</span></code> 的参数由动作、可选过滤器参数、和输出模式组成。</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">cephfs</span><span class="o">-</span><span class="n">journal</span><span class="o">-</span><span class="n">tool</span> <span class="n">event</span> <span class="o">&lt;</span><span class="n">action</span><span class="o">&gt;</span> <span class="p">[</span><span class="nb">filter</span><span class="p">]</span> <span class="o">&lt;</span><span class="n">output</span><span class="o">&gt;</span>
</pre></div>
</div>
<p>动作：</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">get</span></code> 从日志读出事件；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">splice</span></code> 擦除日志中的某些事件或区域；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">apply</span></code> 从事件中提取文件系统元数据、并试着应用到元数据存储中。</p></li>
</ul>
<p>过滤器选项：</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">--range</span> <span class="pre">&lt;int</span> <span class="pre">begin&gt;..[int</span> <span class="pre">end]</span></code> 过滤从 begin （包含）到
end （不包含）之间的事件；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">--path</span> <span class="pre">&lt;path</span> <span class="pre">substring&gt;</span></code> 按字符串过滤相关事件，此字符串包含在与这些事件相关的元数据中；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">--inode</span> <span class="pre">&lt;int&gt;</span></code> 仅过滤包含指定 inode 的元数据事件；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">--type</span> <span class="pre">&lt;type</span> <span class="pre">string&gt;</span></code> 过滤此类型的事件；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">--frag</span> <span class="pre">&lt;ino&gt;[.frag</span> <span class="pre">id]</span></code> 过滤与此目录片段相关的事件；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">--dname</span> <span class="pre">&lt;string&gt;</span></code> 过滤与目录片段内的指定 dentry 相关的事件，只能和 <code class="docutils literal notranslate"><span class="pre">--frag</span></code> 一起使用；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">--client</span> <span class="pre">&lt;int&gt;</span></code> 过滤来自此客户端会话 ID 的事件。</p></li>
</ul>
<p>过滤器可用“与”操作组合使用，也就是最终结果为各过滤器的交集。</p>
<p>输出模式：</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">binary</span></code>: 把各事件写入一个二进制文件，放入 <code class="docutils literal notranslate"><span class="pre">--path</span></code> 指定的目录；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">json</span></code>: 把所有事件组织为序列化的 JSON 对象列表，并写入单个文件；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">summary</span></code>: 把人类可读的事件汇总写到标准输出；</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">list</span></code>: 写出一个人类可读的摘要列表，其中包含各事件的类型、以及此事件所影响的文件路径。</p></li>
</ul>
<div class="section" id="id6">
<h3>实例：事件模式<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h3>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># cephfs-journal-tool event get json --path output.json</span>
<span class="n">Wrote</span> <span class="n">output</span> <span class="n">to</span> <span class="n">JSON</span> <span class="n">file</span> <span class="s1">&#39;output.json&#39;</span>

<span class="c1"># cephfs-journal-tool event get summary</span>
<span class="n">Events</span> <span class="n">by</span> <span class="nb">type</span><span class="p">:</span>
  <span class="n">NOOP</span><span class="p">:</span> <span class="mi">2</span>
  <span class="n">OPEN</span><span class="p">:</span> <span class="mi">2</span>
  <span class="n">SESSION</span><span class="p">:</span> <span class="mi">2</span>
  <span class="n">SUBTREEMAP</span><span class="p">:</span> <span class="mi">1</span>
  <span class="n">UPDATE</span><span class="p">:</span> <span class="mi">43</span>

<span class="c1"># cephfs-journal-tool event get list</span>
<span class="mh">0x400000</span> <span class="n">SUBTREEMAP</span><span class="p">:</span>  <span class="p">()</span>
<span class="mh">0x400308</span> <span class="n">SESSION</span><span class="p">:</span>  <span class="p">()</span>
<span class="mh">0x4003de</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="nb">setattr</span><span class="p">)</span>
  <span class="o">/</span>
<span class="mh">0x40068b</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">mkdir</span><span class="p">)</span>
  <span class="n">diralpha</span>
<span class="mh">0x400d1b</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">mkdir</span><span class="p">)</span>
  <span class="n">diralpha</span><span class="o">/</span><span class="n">filealpha1</span>
<span class="mh">0x401666</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">unlink_local</span><span class="p">)</span>
  <span class="n">stray0</span><span class="o">/</span><span class="mi">10000000001</span>
  <span class="n">diralpha</span><span class="o">/</span><span class="n">filealpha1</span>
<span class="mh">0x40228d</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">unlink_local</span><span class="p">)</span>
  <span class="n">diralpha</span>
  <span class="n">stray0</span><span class="o">/</span><span class="mi">10000000000</span>
<span class="mh">0x402bf9</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">scatter_writebehind</span><span class="p">)</span>
  <span class="n">stray0</span>
<span class="mh">0x403150</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">mkdir</span><span class="p">)</span>
  <span class="n">dirbravo</span>
<span class="mh">0x4037e0</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">openc</span><span class="p">)</span>
  <span class="n">dirbravo</span><span class="o">/.</span><span class="n">filebravo1</span><span class="o">.</span><span class="n">swp</span>
<span class="mh">0x404032</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">openc</span><span class="p">)</span>
  <span class="n">dirbravo</span><span class="o">/.</span><span class="n">filebravo1</span><span class="o">.</span><span class="n">swpx</span>

<span class="c1"># cephfs-journal-tool event get --path filebravo1 list</span>
<span class="mh">0x40785a</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">openc</span><span class="p">)</span>
  <span class="n">dirbravo</span><span class="o">/</span><span class="n">filebravo1</span>
<span class="mh">0x4103ee</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">cap</span> <span class="n">update</span><span class="p">)</span>
  <span class="n">dirbravo</span><span class="o">/</span><span class="n">filebravo1</span>

<span class="c1"># cephfs-journal-tool event splice --range 0x40f754..0x410bf1 summary</span>
<span class="n">Events</span> <span class="n">by</span> <span class="nb">type</span><span class="p">:</span>
  <span class="n">OPEN</span><span class="p">:</span> <span class="mi">1</span>
  <span class="n">UPDATE</span><span class="p">:</span> <span class="mi">2</span>

<span class="c1"># cephfs-journal-tool event apply --range 0x410bf1.. summary</span>
<span class="n">Events</span> <span class="n">by</span> <span class="nb">type</span><span class="p">:</span>
  <span class="n">NOOP</span><span class="p">:</span> <span class="mi">1</span>
  <span class="n">SESSION</span><span class="p">:</span> <span class="mi">1</span>
  <span class="n">UPDATE</span><span class="p">:</span> <span class="mi">9</span>

<span class="c1"># cephfs-journal-tool event get --inode=1099511627776 list</span>
<span class="mh">0x40068b</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">mkdir</span><span class="p">)</span>
  <span class="n">diralpha</span>
<span class="mh">0x400d1b</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">mkdir</span><span class="p">)</span>
  <span class="n">diralpha</span><span class="o">/</span><span class="n">filealpha1</span>
<span class="mh">0x401666</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">unlink_local</span><span class="p">)</span>
  <span class="n">stray0</span><span class="o">/</span><span class="mi">10000000001</span>
  <span class="n">diralpha</span><span class="o">/</span><span class="n">filealpha1</span>
<span class="mh">0x40228d</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">unlink_local</span><span class="p">)</span>
  <span class="n">diralpha</span>
  <span class="n">stray0</span><span class="o">/</span><span class="mi">10000000000</span>

<span class="c1"># cephfs-journal-tool event get --frag=1099511627776 --dname=filealpha1 list</span>
<span class="mh">0x400d1b</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">mkdir</span><span class="p">)</span>
  <span class="n">diralpha</span><span class="o">/</span><span class="n">filealpha1</span>
<span class="mh">0x401666</span> <span class="n">UPDATE</span><span class="p">:</span>  <span class="p">(</span><span class="n">unlink_local</span><span class="p">)</span>
  <span class="n">stray0</span><span class="o">/</span><span class="mi">10000000001</span>
  <span class="n">diralpha</span><span class="o">/</span><span class="n">filealpha1</span>

<span class="c1"># cephfs-journal-tool event get binary --path bin_events</span>
<span class="n">Wrote</span> <span class="n">output</span> <span class="n">to</span> <span class="n">binary</span> <span class="n">files</span> <span class="ow">in</span> <span class="n">directory</span> <span class="s1">&#39;bin_events&#39;</span>
</pre></div>
</div>
</div>
</div>
</div>



           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="../recover-fs-after-mon-store-loss/" class="btn btn-neutral float-right" title="Recovering the file system after catastrophic Monitor store loss" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="../disaster-recovery/" class="btn btn-neutral float-left" title="灾难恢复" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).

    </p>
  </div> 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>